package com.sharer.last.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sharer.last.base.model.PageVO;
import com.sharer.last.model.dto.log.VisitLogChangeDTO;
import com.sharer.last.model.dto.log.VisitLogQueryDTO;
import com.sharer.last.model.po.VisitLogPO;
import com.sharer.last.model.vo.log.VisitLogVO;
import org.springframework.scheduling.annotation.Async;

public interface VisitLogService extends IService<VisitLogPO> {
    /**
     * 分页查询
     *
     * @param visitLogDTO
     * @return
     */
    PageVO<VisitLogVO> selectListByPage(VisitLogQueryDTO visitLogDTO);

    /**
     * 创建访客日志
     *
     * @param log
     */
    @Async
    void createVisitLog(VisitLogChangeDTO log);

    /**
     * 删除访客日志
     *
     * @param id
     */
    void removeVisitLogById(Long id);
}
